
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<meta name="decorator" content="mainframe" />
<link rel="stylesheet" href="<%=request.getContextPath()%>/static/plugins/datepicker/skin/WdatePicker.css">
<!--[if lt IE 9]>
		<script src="js/html5.js"></script>	
	<![endif]-->
</head>
<body>
	<!-- Content Header (Page header) -->
	<section class="content-header">
		<h1>
			角色管理 <small>角色修改</small>
		</h1>
		<ol class="breadcrumb">
			<li><a href="#"><i class="fa fa-dashboard"></i>角色列表</a></li>
			<li><a href="#"><i class="fa"></i>角色修改</a></li>
			<!-- <li class="active">Here</li> -->
		</ol>
	</section>
	<!-- Main content -->
	<section class="content">
		<div class="box box-solid box-default">
			<div class="box-header">角色列表</div>
			<div class="box-body">
				<form class="form-horizontal" role="form" id="roleForm" method="post" action="<%=path%>/role/${role.roleId==null?"add":"update"}">
					<div class="form-group"  hidden="true">
						<input type="hidden" class="form-control" name="roleId"  value="${role.roleId}">
					</div>
					<div class="form-group">
						<label for="name" class="col-sm-2 control-label"><font color="red">*</font>角色名称</label>
						<div class="input-group col-sm-5">
							<input type="text" class="form-control" id="name" name="name" placeholder="请输入用户名" autocomplete="off"  value="${role.Name}">
						</div>
					</div>
					<div class="form-group">
						<label for="description" class="col-sm-2 control-label">描述</label>
						<div class="input-group col-sm-5">
							<input type="text" class="form-control" id="description" name="description" placeholder="" autocomplete="off"  value="${role.description}">
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-offset-2 col-sm-10">
							<button type="submit" class="btn btn-primary">提交</button>
							<input type="button" class="btn btn-default" id="back" name="back" onclick="javascript:window.history.go(-1);" value="返回" />
						</div>
					</div>
				</form>
			</div>
		</div>
	</section>

	<script type="text/javascript"
		src="<%=request.getContextPath()%>/static/plugins/datepicker/WdatePicker.js"></script>
	<script>
		$("#roleForm").validate({
			rules : {
				name : {
					required : true
				}
			}
		});
	</script>
</body>

</html>